using UnityEngine;
public class ResolutionSettings : MonoBehaviour
{
    public int width = 1920;
    public int hight = 1080;
    public FullScreenMode screenMode = FullScreenMode.FullScreenWindow;

    [ContextMenu("Set Resolution")]
    public void SetResolution()
    {
        Screen.SetResolution(width,hight,screenMode);
    }

    private void Start()
    {
        SetResolution();
    }
}